﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.AutoMapper;
using AutoMapper;
using FwProject.ShoppingMall.Com;

namespace FwProject.Com.Dto
{
    /// <summary>
    /// 订单明细创建模型
    /// </summary>
    [AutoMap(typeof(ShopOrderDetails))]
    public class ShopOrderAppDetailsInput
    {
        ///// <summary>
        ///// 用户id
        ///// </summary>
        //[Display(Name ="用户编号")]
        //public long UserId { get; set; }

        ///// <summary>
        ///// 订单编号
        ///// </summary>
        //[Required]
        //[Display(Name = "订单号")]
        //public string OrderNumber { get; set; }

        /// <summary>
        ///商品类别iD
        /// </summary>
        [Display(Name = "商品类别iD")]
        [IgnoreMap]
        public Guid ShopTypeid { get; set; }

        /// <summary>
        /// 购买数量
        /// </summary>
        [Display(Name = "购买数量")]
        public int ProductCount { get; set; }

        /// <summary>
        /// 商品编号
        /// </summary>
        [Display(Name = "商品编号")]
        public Guid ShopproductId { get; set; }

        /// <summary>
        /// 付款时单价
        /// </summary>
        [Display(Name = "付款时单价")]
        public decimal PayPrice { get; set; }

        /// <summary>
        /// 规格Id
        /// </summary>
        [Display(Name = "规格编号")]
        public Guid ShopSkuId { get; set; } = Guid.Empty;
        /// <summary>
        /// 商品名称
        /// </summary>
        public string ShopName { get; set; }
        /// <summary>
        /// sku名称
        /// </summary>
        public string SkuName { get; set; }

    }
}
